ImportError: cannot import name to_categorical

50

ImportError: cannot import name 'to_categorical' -

#keras is now fully integrated into tensorflow, so import like this:
from tensorflow.keras.utils import to_categorical

Comments

Submit
0 Comments